﻿@model IEnumerable<TimeManager.Web.ViewModels.UserTotalsViewModel>
@{
    ViewBag.Title = "Project Time Totals";
}
<h2>
    Project Time Totals</h2>
<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            Hours
        </th>
    </tr>
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TotalHours)
            </td>
        </tr>
    }
</table>
@*@{
    var chart = new Chart(width: 600, height: 400)
               .AddTitle("Project Totals")
               .AddSeries(
                   name: "Project",
                   xValue: new []{ "a", "b", "c" },
                   yValues: new []{ 1, 2, 3 }
                ).Write();
}*@
<p>
    @Html.ActionLink("Back to List", "Index")
</p>
